package cn.itsource.pethome.system.service.impl;

import cn.itsource.pethome.base.service.impl.BaseServiceImpl;
import cn.itsource.pethome.system.domain.Product;
import cn.itsource.pethome.system.mapper.ProductMapper;
import cn.itsource.pethome.system.query.ProductQuery;
import cn.itsource.pethome.system.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl extends BaseServiceImpl<Product> implements IProductService {
    @Autowired
    private ProductMapper productMapper;


    @Override
    public Long count(ProductQuery productQuery) {
        return productMapper.count(productQuery);
    }
}
